﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<title></title>
</head>
<body>
	<script type="text/javascript">
		function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } }
		function changeImages()
		{ if (document.images && (preloadFlag == true)) { for (var i = 0; i < changeImages.arguments.length; i += 2) { document[changeImages.arguments[i]].src = changeImages.arguments[i + 1]; } } }
		var preloadFlag = false; function preloadImages() { if (document.images) {  preloadFlag = true; } }
		var w; var h; var w1; var h1; var rtsp;  var img2345 = new Image();  
		function update() {  var imgObj;    imgObj = document.getElementById('rimg12');    imgObj.src = img2345.src;  img2345.src = "/tmpfs/auto.jpg?" + (new Date()).getTime(); }  
		function takeError() {  img2345.src = "/tmpfs/auto.jpg?" + (new Date()).getTime(); }  
		function startonload() {  img2345.src = "/tmpfs/auto.jpg?" + (new Date()).getTime();  img2345.onerror=takeError;  img2345.onload=update; }  
		function ptzout() {  ptzcmdSubmit('stop'); }  
		function load1() { var ip=document.location.host; 
		    var url="rtsp://"+ip; 
		    var url = "http://"+ip;  if ((navigator.appVersion.indexOf("iPod")!=-1) || (navigator.appVersion.indexOf("iPhone")!=-1)) {  data="<img src='/tmpfs/auto.jpg' id='rimg12'>";  document.getElementById('mydisplay').innerHTML=data; } else { if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1) { var streamnum = DHiMPlayer.GetStreamNum();  if (streamnum == 11) {  w=parseInt(width_1);  h=parseInt(height_1);  document.form1.streamselect[0].selected=true; } 
		    else {  w=parseInt(width_2);  h=parseInt(height_2);  document.form1.streamselect[1].selected=true;  } } 
		    else {  w=parseInt(width_1);  h=parseInt(height_1);  rtsp=url+"/"+"iphone/11"+"?"+name0+":"+password0+"&";  h=h+14;  data='<embed src='+rtsp+' width='+w+' height='+h+' autoplay="true" controller="true" ShowStatusBar="false" type="video/quicktime"';  data=data+' pluginspage="http://www.apple.com/quicktime/download/index.html"> </embed>';  document.getElementById('mydisplay').innerHTML=data; } }  if ((navigator.appVersion.indexOf("iPod")!=-1) || (navigator.appVersion.indexOf("iPhone")!=-1)) {  startonload(); } else { if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1) { DHiMPlayer.SetUrl(url,80,streamnum,name0,password0); DHiMPlayer.SetWndPos(0, 0, w, h); DHiMPlayer.Play(); } 
		    else 
		    { 
startonload(); 
} } dismisspic(); 
		    DHiMPlayer1.OpenMDSetPage(1); 
		    startflag=1; changeImg(); }  
		    function flush() { DHiMPlayer.InvalidateWnd(); } 
		    function streamchange() {  var form=document.form1;   if (form.streamselect[0].selected==true)  {   DHiMPlayer.SetStreamNum(11);   location.reload();  }  
		    else  if (form.streamselect[1].selected==true)  {   DHiMPlayer.SetStreamNum(12);   location.reload();  }  }  
		    function snap() { DHiMPlayer.Snapshot(); }  function speaker() {  var flag;  DHiMPlayer.SetMuteState();    flag = DHiMPlayer.GetMuteState();  
		        alert(flag);  if (flag == 1){   
		                          if(language=='simple_chinese'){   document.getElementById('img_listen').src = "images/btn_jianting_on.gif";  
		                                        }
		                          else{   document.getElementById('img_listen').src = "images/btn_jianting_on_en.gif";   }   } 
		        else {
		                             if(language=='simple_chinese'){   document.getElementById('img_listen').src = "images/btn_jianting.gif";   }
		                             else{    document.getElementById('img_listen').src = "images/btn_jianting_en.gif";   }
		                      } }  
		    function mic() {  var flag;   DHiMPlayer.SetTalkState();    flag = DHiMPlayer.GetTalkState();  if (flag == 0) {
if(language=='simple_chinese'){     document.getElementById('img_talk').src="images/btn_talk_on.gif";    }else{     document.getElementById('img_talk').src="images/btn_talk_on_en.gif";    }
}  
		                      else{   if(language=='simple_chinese'){     document.getElementById('img_talk').src="images/btn_talk.gif";    }
		                      else{     document.getElementById('img_talk').src="images/btn_talk_en.gif";    }   } }  
		    function record() {
		        if(language=='simple_chinese') {
document.getElementById('recImage_avi').src="images/btn_luxiang_on.gif"
}
		         else{      document.getElementById('recImage_avi').src="images/btn_luxiang_on_en.gif"     }    } else{  if(language=='simple_chinese'){       document.getElementById('recImage_avi').src="images/btn_luxiang.gif"       }    else{    document.getElementById('recImage_avi').src="images/btn_luxiang_en.gif"     }  }
		    } function playback() { DHiMPlayer.PlayBack(); }
		    function ptzcmdSubmit(casename) {
		          alert(casename); 
				  parent.retframe.location.href='cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=' + casename;
		         } function ptzctrlpresetSubmit(casenum) { parent.retframe.location.href = 'cgi-bin/hi3510/preset.cgi?-act=goto&-number=' + casenum; }
		         function ptzsetpresetSubmit(casenum) {  parent.retframe.location.href='cgi-bin/hi3510/preset.cgi?-act=set&-status=1&-number=' + casenum; } </script>
</body>
</html>
